<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head th:replace="head :: commonHead('付款')">

</head>

<style>
    .Photograph {
        display: none;
    }
</style>

<body>

<div th:replace="head :: header"></div>

<!-- 主体内容 -->
<div id="app">
    <div class="user_container clearfix">

        <!--<div class="crumbs_nav">
            <a href="javascript:void(0)" class="on">选择支付方式</a>
        </div>-->

        <div class="right_boxwrap order_boxwrap">
            <div class="user_right_box">
                <div class="user_right_box_title">
                    <div class="user_right_box_title_l">
                        <em></em>
                        <h3>付款页面</h3>
                    </div>
                </div>
                <div class="user_info order_info">
                    <form th:action="@{/order/pay}" method="post">
                        <div class="middle">
                            <div class="middle_box">
                                <div class="middle_box_title">
                                    <h3>订单信息</h3>
                                </div>
                                <div class="middle_box_con paymen_info">
                                    <input type="hidden" id="id" name="id" th:value="${order.id}"/>
                                    <table class="order_details_table" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <th>作品名称：</th>
                                            <td th:text="${orderDetail.sameStyleId eq null ? '私人定制作品' : orderDetail.sameStyle.name + ' - 同款作品'}"></td>
                                        </tr>
                                        <tr>
                                            <th>买家昵称：</th>
                                            <td th:text="${orderUser.nickname}"></td>
                                        </tr>
                                        <tr>
                                            <th>交易金额：</th>
                                            <td th:text="${#numbers.formatDecimal(order.totalPrice,1,2) + '元'}"></td>
                                        </tr>
                                        <tr>
                                            <th>购买时间：</th>
                                            <td th:text="${#dates.format(order.orderTime,'yyyy-MM-dd HH:mm')}"></td>
                                        </tr>
                                        <tr>
                                            <th>订 单 号 ：</th>
                                            <td th:text="${order.no}"></td>
                                        </tr>
                                    </table>
                                </div>
                            </div>

                            <div class="middle_box">
                                <div class="middle_box_title">
                                    <h3>付款方式</h3>
                                </div>

                                <!--/* 如果订单作品类型为宣传片, 并且为待付款-未评估价格状态, 不显示支付方式 */-->
                                <div class="middle_box_con" style="padding-left: 0;" th:if="${not ((order.type eq 2 or order.orderDetail.videoType eq 4) and order.status eq 2 and order.statusStep eq 1)}">
                                    <div class="payment table">
                                        <label style="margin-right: 75px;">
                                            <input name="type" type="radio" value="1" checked/>
                                            <img th:src="${#request.getAttribute('ctx') + '/static/front/img/zfb-icon.png'}">
                                            <span style="display: inline-block;margin-left: 30px;">支付宝付款</span>
                                        </label>
                                    </div>
                                    <div class="payment table">
                                        <label style="margin-right: 75px;">
                                            <input name="type" type="radio" value="2"/>
                                            <img th:src="${#request.getAttribute('ctx') + '/static/front/img/wx-icon.png'}">
                                            <span style="display: inline-block;margin-left: 30px;">微信付款</span>
                                        </label>
                                    </div>
                                </div>

                                <!--/* 如果订单作品类型为宣传片, 并且为待付款-未评估价格状态, 提示 */-->
                                <div class="middle_box_con" style="padding-left: 0;" th:if="${(order.type eq 2 or order.orderDetail.videoType eq 4) and order.status eq 2 and order.statusStep eq 1}">
                                    <div class="payment table">
                                        <label style="margin-right: 75px;">
                                            <span style="display: inline-block; margin-left: 30px; color: red;">订单已创建, 小鹿稍候会为您评估总价, 请稍候再进行支付</span>
                                        </label>
                                    </div>
                                </div>
                            </div>

                        </div>

                        <!--/* 如果订单作品类型为宣传片, 并且为待付款-未评估价格状态, 不显示支付方式 */-->
                        <div class="invoice_bottom clearfix" th:if="${not ((order.type eq 2 or order.orderDetail.videoType eq 4) and order.status eq 2 and order.statusStep eq 1)}">
                            <div class="invoice_bottom_btn">
                                <input type="submit" value="提交订单"/>
                            </div>
                        </div>
                    </form>

                </div>
            </div>
        </div>
    </div>

</div>


<!-- 版权信息 -->
<div th:replace="foot :: body"></div>

</body>

<script th:src="${#request.getAttribute('ctx') + '/static/front/js/home.js'}" type="text/javascript" charset="utf-8"></script>

</html>
